date=`date +%Y-%m-%d.%Hh_%Mm`
versionNumber="v0.0.1"
packageVersion="com/dm/cloud/auth/equip-gateway-biz:${versionNumber}.${date}"
docker build -t ${packageVersion} .
sed -i /EQUIP_GATEWAY_VERSION/d ../.env
echo EQUIP_GATEWAY_VERSION="${versionNumber}.${date}" >> ../.env
cd ../
docker-compose  stop equip-gateway-server
docker-compose  rm -f equip-gateway-server
docker-compose  up -d equip-gateway-server